/*package com.smarttest.portal.beans;

import com.chinaway.columnar.annotation.Column;
import com.chinaway.columnar.annotation.RowKey;
import com.chinaway.columnar.annotation.Table;

import java.io.Serializable;
import java.util.Date;

//import exception.OpDataException;
//import unionclass.CommonUtil;
//import unionclass.DateUtils;

*//**
 * Created by Huoyunren on 2016/5/27.
 *//*

@Table(name = "gps_lct_trace")
public class LocationTO implements Serializable {

    private static final long serialVersionUID = -657085448258110685L;

    public static final String GRP_IMEI = "imei";
    *//**
     * 最小有效距离，大于这个距离的为有效移动
     *//*
    public static final int VALID_DIST = 100;

    @RowKey
    private String rowkey;
    // 设备IMEI号
    @Column(family = "f1", name = "imei")
    private String imei;
    // 定位时间，即设备上报时间
    @Column(family = "f1", name = "time")
    private Date time;
    // 经度
    @Column(family = "f1", name = "lng")
    private double lng;
    // 纬度
    @Column(family = "f1", name = "lat")
    private double lat;
    // 速度
    @Column(family = "f1", name = "speed")
    private long speed;
    // 和上一点的距离，厘米
    @Column(family = "f1", name = "distance")
    private long distance;
    // 设备上报总里程
    @Column(family = "f1", name = "total_mileage")
    private long totalMileage;
    // 航向，360度，正北为0
    @Column(family = "f1", name = "course")
    private int course;
    // 电压
    @Column(family = "f1", name = "voltage")
    private int voltage;
    // 两条有效数据最长时间间隔，单位：秒
    @Column(family = "f1", name = "py_blank")
    private int pyBlank;
    // 定位状态
    @Column(family = "f1", name = "gps_status")
    private int gpsStatus = 1;

    // 设备上报总里程
    @Column(family = "f1", name = "ems_mileage")
    private long emsMileage;

    public long getEmsMileage() {
        return emsMileage;
    }

    public void setEmsMileage(long emsMileage) {
        this.emsMileage = emsMileage;
    }

    // 停止时间
    private long stoptime;

//    public void definitionRowkey(String imei, Date time) throws OpDataException {
//        this.rowkey = CommonUtil.invertZeroImei(imei) + DateUtils.getString(time, "yyyyMMddHHmmss");
//    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public long getSpeed() {
        return speed;
    }

    public void setSpeed(long speed) {
        this.speed = speed;
    }

    public long getDistance() {
        return distance;
    }

    public void setDistance(long distance) {
        this.distance = distance;
    }

    public long getTotalMileage() {
        return totalMileage;
    }

    public void setTotalMileage(long totalMileage) {
        this.totalMileage = totalMileage;
    }

    public int getCourse() {
        return course;
    }

    public void setCourse(int course) {
        this.course = course;
    }

    public int getVoltage() {
        return voltage;
    }

    public void setVoltage(int voltage) {
        this.voltage = voltage;
    }

    public int getPyBlank() {
        return pyBlank;
    }

    public void setPyBlank(int pyBlank) {
        this.pyBlank = pyBlank;
    }

    public int getGpsStatus() {
        return gpsStatus;
    }

    public void setGpsStatus(int gpsStatus) {
        this.gpsStatus = gpsStatus;
    }

    public long getStoptime() {
        return stoptime;
    }

    public void setStoptime(long stoptime) {
        this.stoptime = stoptime;
    }

}*/